package components.utils
{
	import capricornus.core.StageManager;
	
	import flash.events.FocusEvent;
	import flash.events.MouseEvent;
	import flash.text.TextField;

	public class FocusManager
	{
		private static var _ins:FocusManager = null;
		
		public function FocusManager()
		{
			init();
		}
		
		public static function get instance():FocusManager
		{
			if( null==_ins )
			{
				_ins = new FocusManager();
			}
			return _ins;
		}
		
		private function init():void
		{
			StageManager.stage.addEventListener( FocusEvent.KEY_FOCUS_CHANGE, onFocusChange, false, 0, true );
			StageManager.stage.addEventListener( FocusEvent.MOUSE_FOCUS_CHANGE, onFocusChange, false, 0, true );
		}
		
		private function onFocusChange( e:FocusEvent ):void
		{
		}
	}
}